# coding:utf-8
from setuptools import setup, find_packages
from payment import __version__, __author__, __mail__, __license__, __url__


def read_line(f_name):
    with open(f_name) as f:
        require = [l.strip() for l in f.readlines()]
    return require


def read(f_name):
    with open(f_name) as fp:
        content = fp.read()
    return content

setup(
    name='thirdparty_payment',
    version=__version__,

    description='第三方支付接口',
    long_description=read("README.rst"),
    author=__author__,
    author_email=__mail__,
    license=__license__,
    url=__url__,

    zip_safe=False,
    packages=find_packages(exclude=['examples', 'tests']),
    include_package_data=True,
    install_requires=read_line("requirements.txt"),

    classifiers=[
        "Programming Language :: Python :: 2",
        'Programming Language :: Python :: 3'
    ]
)
